﻿using System.Collections.Generic;

namespace LiteGrid.Mvc.Sample.Domain
{
	public static class PartRepository
	{
		private static Part[] _parts;

		static PartRepository()
		{
			var parts = new[]
			            	{
			            		new Part{ID = 1, Name = "Engine", Price = 1000, Coating = "Steel", Description = "A high-performance jet engine.", Available = true },
			            		new Part{ID = 2, Name = "Wing", Price = 500, Coating = "Kevlar", Description = "Test Description", Available = true },
			            	};

			_parts = parts;
		}

		public static IEnumerable<Part> GetParts()
		{
			return _parts;
		}
	}
}